package com.bt.utils;

/**
 * @Description TODO
 * @Author itheima
 * @Date 2023-05-03 21:46
 */
public class CommonUtil {
    /**
     *     将数据库中["XXXX"] 数据格式转换为 字符串数组
     */
    public static String[] String2Array(String str){
        String substring = str.substring(1, str.length()-1);
        String replace = substring.replace("\"", "");
        String[] strArr = replace.split(",");
        return strArr;
    }
}
